package org.dfg.corejava.designPattern.builder;

/**
 * 指挥者<br/>
 * 控制建造过程，隔离用户与建造过程的关联
 * 
 * @author Administrator
 */
public class Director {
	private Builder builder;

	public Director(Builder builder) {
		this.builder = builder;
	}

	/**
	 * 控制建造顺序
	 */
	public void build() {
		builder.build1();
		builder.build2();
		builder.build3();
	}
}
